#if !defined(AFX_TEXTSTYLE_H__8B88CF71_226C_489F_8CB5_F6BCD495D17C__INCLUDED_)
#define AFX_TEXTSTYLE_H__8B88CF71_226C_489F_8CB5_F6BCD495D17C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextStyle.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTextStyle dialog
#include "resource.h"
class CTextStyle : public CDialog
{
// Construction
public:
	void SetDBConnection(_ConnectionPtr& pCon);
	int m_styleID;
	CTextStyle(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTextStyle)
	enum { IDD = IDD_TEXT_STYLE };
	CComboBox	m_CtrlBoxStyle;
	CString	m_strCBOX;
	BOOL	m_bOverturn;
	BOOL	m_bReverse;
	double	m_fWscale;
	double	m_fAngle;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTextStyle)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	bool WriteToDB();
	int m_curSelectPos;
	bool InitTextComBox();
	bool UpdateTextStyle();
	_RecordsetPtr m_pTextRs;
	_ConnectionPtr m_pCon;

	// Generated message map functions
	//{{AFX_MSG(CTextStyle)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeComboxStyle();
	afx_msg void OnDropdownComboxStyle();
	afx_msg void OnAddStyle();
	afx_msg void OnDeleteStyle();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TEXTSTYLE_H__8B88CF71_226C_489F_8CB5_F6BCD495D17C__INCLUDED_)
